from PIL import Image, ImageGrab
from datetime import datetime
import time

path = r'd:\game\wowdesktop.jpg'

for i in range(0,888888):
    print(datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"))
    img = ImageGrab.grab()
    img.save(path)
    print(datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"))
    print('=========================================================================')
